local EffectFactory = Battle.CreateClass("EffectFactory")
Battle.EffectFactory = EffectFactory

---@return Battle.EffectBase
function EffectFactory.CreateEffect(effectType,resName,pos,forward,during)
    if string.IsEmpty(resName) then
        return
    end
    resName = Battle.EFFECT_PATH..resName
    local effect = Battle.PoolMgr.GetEffectFromPool(effectType)
    effect:Reset(Battle.IDGenerator.GetId())
    effect:SetParam(resName,pos,forward,during)
    return effect
end
